package io.github.xxyopen.novel.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.xxyopen.novel.dao.entity.Participle;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ParticipleMapper extends BaseMapper<Participle> {

    /**
     * 保存分词
     * @param participle
     * @return
     */
    Integer  saveParticiple(String participle);

    /**
     * 删除分词
     * @param participle
     * @return
     */
    Integer  deleteParticiple(String participle);

    /**
     * 批量保存分词信息
     * @param participles
     * @return
     */
    Integer batchSaveParticiple(List<Participle> participles);

    List<String> getExistWords(List<String> words );

}

